import App from './App'
// #ifndef VUE3
import store from "./store"
Vue.prototype.$store = store
import {
	ziti,
	to
} from "@/untils/index.js"
Vue.prototype.$http = "https://aopu.huijipin.cn/"
import {
	api
} from '@/untils/request.js'
import Components from '@/untils/component.js';
Vue.use(Components);
// import * as filters from './untils/filters'
// Object.keys(filters).forEach((key) => {
// 	Vue.filter(key, filters[key])
// })
Vue.prototype.$toast = (item, a) => {
	uni.showToast({
		title: ziti(store.state.ziti, item),
		icon: "none",
	});
}
Vue.prototype.$jf = (a,b) => {
	if (store.state.ziti == 1) {
		return a
	} else {
		return b
	}
}
Vue.prototype.api = api
Vue.prototype.$ziti = ziti
Vue.prototype.$to = to
Vue.prototype.$img = (item) => 'url(' + item + ')'
Vue.prototype.$top = () => {
	return uni.getSystemInfoSync().statusBarHeight
}
Vue.prototype.$height = () => {
	return uni.getSystemInfoSync().screenHeight
}
Vue.prototype.$bottom = () => {
	return uni.getSystemInfoSync().navigationBarHeight
}
Vue.config.productionTip = false
import Vue from 'vue'
import uView from "uview-ui";
Vue.use(uView);
App.mpType = 'app'
const app = new Vue({
	...App
})

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
